package cn.stylefeng.guns.modular.promotion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:19
 * @version 1.0
 */
/**
    * 促销活动跟商品sku的关联关系
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "promotion_activity_goods_relation")
public class PromotionActivityGoodsRelationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 促销活动ID
     */
    @TableField(value = "promotion_activity_id")
    private Long promotionActivityId;

    /**
     * 关联的某个商品sku的ID，如果将这个字段的值设置为-1，那么代表针对全部商品
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PROMOTION_ACTIVITY_ID = "promotion_activity_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}